{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
	<form class="layui-form p-4">
		<h3 class="pb-3">编辑补酒反馈</h3>
		<table class="layui-table layui-table-form">
			<tr><td class="layui-td-gray-2">补酒员ID<font>*</font></td>
			<td><input type="text" name="uid"  lay-verify="required" lay-reqText="请完善补酒员ID" value="{$detail.uid}" autocomplete="off" placeholder="请输入补酒员ID" class="layui-input"></td><td class="layui-td-gray-2">设备ID<font>*</font></td>
			<td><input type="text" name="device_id"  lay-verify="required" lay-reqText="请完善设备ID" value="{$detail.device_id}" autocomplete="off" placeholder="请输入设备ID" class="layui-input"></td><td class="layui-td-gray-2">应补酒数量<font>*</font></td>
			<td><input type="text" name="num_one"  lay-verify="required" lay-reqText="请完善应补酒数量" value="{$detail.num_one}" autocomplete="off" placeholder="请输入应补酒数量" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">实际补酒数量<font>*</font></td>
			<td><input type="text" name="num_two"  lay-verify="required" lay-reqText="请完善实际补酒数量" value="{$detail.num_two}" autocomplete="off" placeholder="请输入实际补酒数量" class="layui-input"></td><td class="layui-td-gray-2">描述情况<font>*</font></td>
			<td><input type="text" name="content"  lay-verify="required" lay-reqText="请完善描述情况" value="{$detail.content}" autocomplete="off" placeholder="请输入描述情况" class="layui-input"></td><td class="layui-td-gray-2">图片<font>*</font></td>
			<td><input type="text" name="img"  lay-verify="required" lay-reqText="请完善图片" value="{$detail.img}" autocomplete="off" placeholder="请输入图片" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">提交时间<font>*</font></td>
			<td><input type="text" name="create_time"  lay-verify="required" lay-reqText="请完善提交时间" value="{$detail.create_time}" autocomplete="off" placeholder="请输入提交时间" class="layui-input"></td><td colspan='4'></td>
		</tr>
		</table>
		<div class="py-3">
			<input type="hidden" name="id" value="{$detail.id}"/>
			<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
	<script>
		var moduleInit = ['tool'];

			function gouguInit() {
			var form = layui.form, tool = layui.tool;
			var layer = layui.layer;
			var element = layui.element;
			
			
			
			//监听提交
			form.on('submit(webform)', function (data) {
			
			let callback = function (e) {
			layer.msg(e.msg);
			if (e.code == 0) {
			tool.sideClose(1000);
		}
		}
			tool.post("/admin/device_back/edit", data.field, callback);
			return false;
		});
		}
	</script>
{/block}
<!-- /脚本 -->